*OPEN STATA OUTPUT FILE LOG *


*log using "C:\Users\gk57526\Dropbox\Confirmation Dynamics Project (Jason Byers)\Confirmation Delay & Senate Committees\2023 Version\Fall 2024\Statistics\Output\Committee Delay.APPENDIX E RESULTS.smcl", replace

log using "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Output/Committee Delay.APPENDIX E RESULTS.smcl", replace

  
  
**** JSB UPDATED DATABASE: ADDING EXECUTIVE NOMINATION POSITIONS COVERED IN OSTRANDER DATABASE FROM MAY 2012 THROUGH DECEMBER 2020 AND UPDATING ALL OTHER DATA [SUMMER/FALL 2023]: /// 
*** ADDITIONAL VARIABLES ADDED IN MARCH 2024 IN RESPSONSE TO LSQ REFEREE REPORTS ****

**** "EXECUTIVE DEFERENCE OR LEGISLATIVE CONSTRAINT? COMMITTEE FOUNDATIONS OF CONFIRMATION DELAY FOR U.S. EXECUTIVE BRANCH APPOINTMENTS" [KRAUSE & BYERS] ****

 

   
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
   


   



**** APPENDIX E SENSITIVITY ANALYSES: "SWITCHING" SUCCEFFULLY REPORTED OUT OF COMMITTEE CASES THAT ARE NOT ACTED UPON BY THE SENATE FROM CENSORED TO UNCENSORED OBSERVATIONS ****




**** RATIONALE: THESE EXECUTIVE NOMINEE CASES WERE SUCCESSFUL IN BEING PROCESSED OUT OF COMMITTEE, IF NOT THE ENTIRE CONFIRMATION PROCESS [N = 147 CASES "SWITCHED"] **** 







**************************************************************************************************************************************************************************************** **************************************************************************************************************************************************************************************** *************************************************************************************************************************************************************************************** ****************************************************************************************************************************************************************************************
			  			  
	
  
*** COMMITTEE CONTROL COVARIATES:       experience_median  / chair_experience_1; ///
***										ln_combills_workload; committeestaffsize [# Committee Staff]   
    
*** OSTRANDER CONTROL COVARIATES:       sendivide  polarization pres_app_m first90 preselection lameduck workload [Executive Civilian Nominations: Senate] 
***										female priorconfirm _Itier_2 _Itier_3 _Itier_4 defense infrastructure social


*** ADDITIONAL CONTROL COVARIATES:      pressenfloorabsdist [-] [|Senate Floor Median - President|]; kv_workload (# civilian executive nominations made in a given year/session)	
***										denied [-] [nominee previously denied in same Congress]; fvra [+] [= 1 if subject to FVRA 1998, = 0 otherwise]; 
***										firstrecess[-] [= 1 is nominated in July or August affected by August Recess, = 0 otherwise]; 
*** 									secondrecess [-] [= 1 is nominated in November or December affected by December Recess, = 0 otherwise]; major policy agency binary indicator [-];                      
***                                     committee-level & pressidential administration unit/fixed effects.
                                        
                                
							                       
 
	   
	   
	   

  
 * OPEN UPDATED "CONFIRMATION DELAY & SENATE COMMITTEES PROJECT" MANUSCRIPT DATABASE [12-23-2024] *
 
*use "C:\Users\gk57526\Dropbox\Confirmation Dynamics Project (Jason Byers)\Confirmation Delay & Senate Committees\2023 Version\Fall 2024\Statistics\Data\Committee Delay.MANUSCRIPT RESULTS.12-23-2024.dta", replace

use "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Data/Committee Delay.MANUSCRIPT RESULTS.12-23-2024.dta", replace



*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** CREATE NEW, ALTERNATIVE CENSORING VARIABLE [CONFIRMBINARYALT] BASED UPON "CONFIRMTRI" MEASURE, WHERE "SWITCHED" CASES ARE "CONFRIMTRI==1" ***


quietly stcox   committee_pres1 pressenfloorabsdist     sendivide     experience_median   committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck   kv_workload  polarization   workload  female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1 i.presrev,  vce(cluster kbcom_1)

tab confirmtri if e(sample)
*
gen confirmbinaryalt = 0 if confirmtri == 0
*
replace confirmbinaryalt = 1 if confirmtri >= 1
*
tab confirmbinaryalt confirmtri if e(sample)




***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 






** SET UP DATA TO BE READ IN DURATION/SURVIVAL TIME FORM & CREATE REQUISITE INTERACTION VARIABLES TO BE USED IN EVALUATING SELECTIVE VETTING HYPOTHESIS **
*** NOTE: ALTERNATIVE CENSORING INDICATOR VARIABLE EMPLOYED HERE [CONFIRMBINARYALT] ***

stset legvetdur2plus1, failure(confirmbinaryalt)

*
*
*
*





*** EVALUATING THE SELECTIVE VETTING HYPOTHESIS: FIRST SET OF ANALYSES ON FULL SAMPLE OF EXECUTIVE NOMINEES  ***



* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL E1: COX SEMIPARAMETRIC MODEL] *

stcox  c.committee_pres1##i.sendivide  pressenfloorabsdist   experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck   kv_workload  polarization   workload  female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency   i.kbcom_1  i.presrev,  vce(cluster kbcom_1)
 
*
*

* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_committee_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_committee_pres1 if e(sample) & sendivide==1, detail

** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1"  *
lincomest (committee_pres1 * 0.303 +  1.sendivide#c.committee_pres1 * 0.2483547) - committee_pres1 * 0.303, eform(hr)
matrix modelE1 = r(table)
mat list modelE1
*
*
*




****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************



* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL E2: COX SEMIPARAMETRIC MODEL] *

stcox  c.chair_pres1##i.sendivide  pressenfloorabsdist   chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck   kv_workload  polarization   workload  female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency    i.kbcom_1  i.presrev,  vce(cluster kbcom_1)
*
*
* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_chair_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_chair_pres1 if e(sample) & sendivide==1, detail


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_chair_pres1" *
lincomest (chair_pres1 * 0.2724212 +  1.sendivide#c.chair_pres1 * 0.2364347) - chair_pres1 * 0.2724212, eform(hr)
matrix modelE2 = r(table)
mat list modelE2
*
*
*



****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************



* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL E3: WEIBULL PARAMETRIC MODEL] *

streg  c.committee_pres1##i.sendivide   pressenfloorabsdist   experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck   kv_workload  polarization   workload  female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1 i.presrev,  distribution(weibull) vce(cluster kbcom_1)

*
*


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1"  *
lincomest (committee_pres1 * 0.303 +  1.sendivide#c.committee_pres1 * 0.2483547) - committee_pres1 * 0.303, eform(hr)
matrix modelE3 = r(table)
mat list modelE3
*
*
*




****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************


* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL E4: WEIBULL PARAMETRIC MODEL] *

streg  c.chair_pres1##i.sendivide   pressenfloorabsdist   chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck   kv_workload  polarization   workload  female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev,  distribution(weibull) vce(cluster kbcom_1)
*
*


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_chair_pres1" *
lincomest (chair_pres1 * 0.2724212 +  1.sendivide#c.chair_pres1 * 0.2364347) - chair_pres1 * 0.2724212, eform(hr)
matrix modelE4 = r(table)
mat list modelE4
*
*
*





*** CREATE FIGURE E1 BASED ON MODELS E1 - E4 ***

matrix A = J(4, 3, .)
matrix coln A = Point ll95 ul95
matrix rown A = 1 2 3 4

matrix A[1,1] = modelE1[1,1]
matrix A[1,2] = modelE1[5,1]
matrix A[1,3] = modelE1[6,1]

matrix A[2,1] = modelE2[1,1]
matrix A[2,2] = modelE2[5,1]
matrix A[2,3] = modelE2[6,1]

matrix A[3,1] = modelE3[1,1]
matrix A[3,2] = modelE3[5,1]
matrix A[3,3] = modelE3[6,1]

matrix A[4,1] = modelE4[1,1]
matrix A[4,2] = modelE4[5,1]
matrix A[4,3] = modelE4[6,1]


**********

coefplot (matrix(A[,1]), ci((2 3))), grid(none) xline(1, lcolor(red%40) lpattern(dash)) xtitle("Hazard Ratio", size(small) margin(t=2)) ylabel(1 "Model E1" 2 "Model E2" 3 "Model E3" 4 "Model E4", labsize(small) noticks) mlabel format(%9.3f) mlabposition(12) mlabsize(vsmall) xlabel(0(1)2, angle(0) labsize(small) format(%9.1f)) msymbol(o) mcolor(black) msize(small) title("FIGURE E1", size(med)) ciopts(lcolor(black)) legend(off) subtitle("Differential Partisan Control Effects of Committee-President Ideological Distance" "(Alternative Censoring Decision Rule)", size(small))

*graph save "Graph" "C:\Users\gk57526\Dropbox\Confirmation Dynamics Project (Jason Byers)\Confirmation Delay & Senate Committees\2023 Version\Fall 2024\Statistics\Graphics\FigureE1.gph", replace

graph save "Graph" "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Graphics/Appendix E/FigureE1.gph", replace





****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************



log close
